﻿(function () {
    'use strict';
    var app = angular.module('app', []);
    
    app.controller('mainController', [function () {
        this.message = {
            msg: ''
        };
        this.people = [
            { name: 'joe', age: 65 },
            { name: 'jane', age: 45 }
        ];

        this.callValFunc = function() {
            alert(this.message.msg);
        };
        
        
    }]);
}());